import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from "./home/home.component";
import { ProducrDetailsComponent } from "./producr-details/producr-details.component";

const routesConfig : Routes = [
    {
        path : '',
        component : HomeComponent
    },
    {
        path : 'product/:productId',
        component : ProducrDetailsComponent
    }
];

@NgModule ({
    imports : [RouterModule.forRoot (routesConfig)],
    exports : [RouterModule],
    providers : [],
})
export class AppRoutingModule {

}
